package com.xs.designpattern;

import lombok.EqualsAndHashCode;
import lombok.RequiredArgsConstructor;

/**
 * 兽人法师
 * @author xs
 */
@EqualsAndHashCode(callSuper = false)
@RequiredArgsConstructor
public class OrcMage extends Mage{
    private final String weapon;

    public OrcMage(OrcMage orcMage) {
        super(orcMage);
        this.weapon = orcMage.weapon;
    }

    @Override
    public String toString() {
        return "兽人法师攻击时使用" + weapon;
    }
}
